package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.query.StrategyCatalogQueryObject;
import cn.wolfcode.trip.base.service.IStrategyCatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/strategyCatalogs")
public class StrategyCatalogController {
    @Autowired
    private IStrategyCatalogService strategyCatalogService;


    @GetMapping("/{strategyId}")
    public Object queryBystrategyId(StrategyCatalogQueryObject qo) {
        return strategyCatalogService.query(qo);
    }

}
